export const defaultChartOption = {
  dataZoom: [
    {
      show: false,
      filterMode: "empty"
    }
  ],
  animation: false,
  grid: {
    left: "10%",
    right: "15%"
  },
  tooltip: {
    trigger: "axis",
    axisPointer: {
      label: {
        show: false
      },
      show: true
    }
  },
  xAxis: {
    type: "time",
    axisLabel: {
      formatter: {
        day: "{dayStyle|{d}日}",
        month: "{monthStyle|{M}月}"
      },
      rich: {
        monthStyle: {
          fontWeight: "bold"
        },
        dayStyle: {
          fontWeight: "bold"
        }
      }
    },
    splitLine: {
      show: false
    },
    nameLocation: "middle"
  },
  yAxis: [
    {
      name: "Y1",
      type: "value",
      min: 0,
      max: 100,
      axisLabel: { formatter: "{value}" },
      axisTick: {
        show: true
      },
      axisLine: {
        show: true
      },
      boundaryGap: [0, "50%"],
      splitLine: {
        show: true
      }
    },
    {
      name: "Y2",
      type: "value",
      axisLabel: { formatter: "{value}" },
      axisTick: {
        show: true
      },
      boundaryGap: [0, "50%"],
      splitLine: {
        show: true
      }
    }
  ],
  legend: {
    data: ["无数据"]
  },
  series: [
    {
      name: "无数据",
      type: "line",
      showSymbol: false,
      emphasis: {
        focus: "series",
        scale: true
      },
      data: [[new Date()]]
    }
  ]
};

export const defaultSetting = {
  key: "",
  id: "",
  name: "",
  duration: "3600",
  startTime: "",
  optionY: [
    { name: "Y1", mesure: "", unit: "", sensors: [] },
    { name: "Y2", mesure: "", unit: "", sensors: [] }
  ]
};
